package com.example.demo.test;

import org.apache.commons.lang3.StringUtils;

/**
 * @description 字符串替换
 *
 * @author lilinchun
 * @date 2023/09/04
 */
public class demo2 {

    public static void main(String[] args) {
        String url="http://ebc-test.benwunet.com/h5/#/hotArticle/detail?id=#{id}&pageType=2";
        String replace = StringUtils.replace(url, "#{id}", "456789");
        System.out.println(replace);
    }
}
